package com.security.demo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: jxm
 * @Description:
 * @Date: 2022/4/28 10:40
 * @Version: 1.0
 */
@RestController
public class IndexController {

    @GetMapping("/test/index")
    public String index(){
        return "security index";
    }

    @GetMapping("/test/hello")
    public String hello(){
        return "security Hello";
    }

    @GetMapping("/user/login")
    public String login(){
        return "login";
    }

    @GetMapping("/test/admin")
    public String main(){
        return "main";
    }

    /**
     * 登出控制器
     */
    @GetMapping("/logout")
    public String logout(){
        return "logout";
    }

}
